// Copyright (c) 2007 Robin Boerdijk. All rights reserved.
//
// This software is licensed under the terms of the Microsoft Reciprocal License as described 
// in the file LICENSE.txt, which you should have received as part of this distribution. The 
// license terms are also available at http://www.opensource.org/licenses/ms-rl.html.

#ifndef wtk_EditControl_h_included
#define wtk_EditControl_h_included

#include "wtk/Control.h"
#include "wtk/Event.h"

#include <string>

namespace wtk
{
	class EditControl : public Control
	{
	public:

		EditControl(DialogWindow *dialogWindow);

	protected:

		virtual LRESULT ProcessMessage(HWND windowHandle, UINT message, WPARAM wParam, LPARAM lParam);

		virtual bool AcceptChar(wchar_t ch);

		virtual void Paste(const std::wstring &text);

	private:

		LRESULT ProcessPasteMessage();
	};
}

#endif